package com.muyu.day3zy.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * @ClassName PreferenceInfo
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/3/24 15:58
 */
public class PreferenceInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 特惠促销id */
    @Excel(name = "特惠促销id", cellType = Excel.ColumnType.NUMERIC)
    private Long id;

    /** 开始时间 */
    @Excel(name = "开始时间")
    private Date startTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private Date endTime;

    /** 促销价格 */
    @Excel(name = "促销价格")
    private Double price;

    /** 优惠方式id */
    @Excel(name = "优惠方式id")
    private Integer discountsId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getDiscountsId() {
        return discountsId;
    }

    public void setDiscountsId(Integer discountsId) {
        this.discountsId = discountsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("price", getPrice())
                .append("discountsId", getDiscountsId())
                .toString();
    }
}
